package top.hzy520.shopcart.service;

import top.hzy520.user.entity.UserElement;
import top.hzy520.shopcart.dto.ProductSkuInputDto;
import top.hzy520.shopcart.dto.ShopCartOutputDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 20:50 2018/6/12
 */
public interface ShopCartService {
    ShopCartOutputDto addShopCart(UserElement uuid, String ipFromRequest, List<ProductSkuInputDto> skuInputDtoList, HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException;

    ShopCartOutputDto shopCartList(String ipFromRequest, UserElement currentUser, HttpServletRequest request) throws UnsupportedEncodingException;

    ShopCartOutputDto delShopCart(List<ProductSkuInputDto> skuInputDtoList, String ipFromRequest, UserElement currentUser, HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException;

    ShopCartOutputDto chooseShopcart(List<ProductSkuInputDto> skuInputDtoList, String ipFromRequest, UserElement currentUser, HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException;

}
